package com.homedo.microservice.distributed.id.service.api;


import com.homedo.microservice.distributed.id.service.api.constant.RemoteService4DistributedIdServiceServiceConstant;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Api(value = "生成单号操作接口", description = "生成单号操作接口")
@RequestMapping(RemoteService4DistributedIdServiceServiceConstant.SERVICE_ID + "/generateNo")
public interface IGenerateNoServiceRemote {

    /**
     * 根据业务标志获取全局唯一序号
     *
     * @param bizCode 业务编码
     * @return
     */
    @GetMapping("{bizCode}")
    Object generateNo(@PathVariable("bizCode") String bizCode, Integer fetchSize);


}
